gpsbabel.git
13 years agoTested:
robertlipe [Mon, 11 Feb 2013 21:50:47 +0000 (21:50 +0000)]
Tested:
  Move icon_descr to a reference-counted QString, freeing us from the horror
  of the 'is_dynamic? xfree()' mess and the issues in waypt_dupe.  The code
  is better in some ways, but suffers now while there are still a lot of
  const char*/QString edges, but there's only so much you can do in one commit
  and still keep the tree running.

  Builds Mac and Mingw-cross.  valgrind runs on Ubuntu.  (and caught a few
  errors as I introduced them.)

13 years agoAdd, use an abstraction for testing url and url_link_text in preparation
robertlipe [Mon, 11 Feb 2013 03:17:22 +0000 (03:17 +0000)]
Add, use an abstraction for testing url and url_link_text in preparation
for the day when it's not a string pointer.

13 years agoMake configure friendly wrt Qt on RHEL/OEL/SL/CENTOS/FEDORA.
tsteven4 [Mon, 11 Feb 2013 01:27:08 +0000 (01:27 +0000)]
Make configure friendly wrt Qt on RHEL/OEL/SL/CENTOS/FEDORA.

13 years agoCoastalExplorer: Allow compilation to succeed without expat.
tsteven4 [Sun, 10 Feb 2013 23:31:06 +0000 (23:31 +0000)]
CoastalExplorer: Allow compilation to succeed without expat.
Note that using this format, and many others, witout expat will result in fatal run time errors.

13 years agoBeging the long, hard road of moving core structures from char * to QString.
robertlipe [Sun, 10 Feb 2013 06:02:10 +0000 (06:02 +0000)]
Beging the long, hard road of moving core structures from char * to QString.
Mostly, this just compartmentalizes the pain of character set conversions in
xmlgeneric.cc while letting them accpet QStrings.

13 years agoFix use-after-free of temp in gbfile. That gets Ubuntu back to a happy place.
robertlipe [Sun, 10 Feb 2013 03:38:11 +0000 (03:38 +0000)]
Fix use-after-free of temp in gbfile.  That gets Ubuntu back to a happy place.

13 years agoMore fixes in tpo teardown; don't double destruct waypoint.
robertlipe [Sun, 10 Feb 2013 03:37:05 +0000 (03:37 +0000)]
More fixes in tpo teardown; don't double destruct waypoint.

13 years agoCorrect mismatched ctor/xfree in tpo.
robertlipe [Sun, 10 Feb 2013 03:03:54 +0000 (03:03 +0000)]
Correct mismatched ctor/xfree in tpo.

13 years agoCorrect mismatched constructor/xfree pair in hsa_ndv.
robertlipe [Sun, 10 Feb 2013 03:01:43 +0000 (03:01 +0000)]
Correct mismatched constructor/xfree pair in hsa_ndv.

13 years agoSplit classic-1 test entries up a bit
robertlipe [Sun, 10 Feb 2013 03:00:40 +0000 (03:00 +0000)]
Split classic-1 test entries up a bit

13 years agoFORCE should not be a PHONY target, it is a prerequisite of real targets.
tsteven4 [Sat, 9 Feb 2013 23:24:58 +0000 (23:24 +0000)]
FORCE should not be a PHONY target, it is a prerequisite of real targets.

13 years agoDeclare PHONY targets.
tsteven4 [Sat, 9 Feb 2013 22:48:55 +0000 (22:48 +0000)]
Declare PHONY targets.

13 years agoPropagate find_vec const-ness upstream.
robertlipe [Sat, 9 Feb 2013 22:00:50 +0000 (22:00 +0000)]
Propagate find_vec const-ness upstream.

13 years agoAnother const change in vecs.
robertlipe [Sat, 9 Feb 2013 21:56:02 +0000 (21:56 +0000)]
Another const change in vecs.

13 years agoMore const-ipation changes in vecs.cc
robertlipe [Sat, 9 Feb 2013 19:38:10 +0000 (19:38 +0000)]
More const-ipation changes in vecs.cc

13 years agoTweak include styles for QtCore.
robertlipe [Sat, 9 Feb 2013 18:50:53 +0000 (18:50 +0000)]
Tweak include styles for QtCore.

13 years agoMechanical warning cleanups in tpo.cc
robertlipe [Sat, 9 Feb 2013 06:22:54 +0000 (06:22 +0000)]
Mechanical warning cleanups in tpo.cc

13 years agoMisc. minor mechanical changes to reduce warning angst.
robertlipe [Sat, 9 Feb 2013 06:16:37 +0000 (06:16 +0000)]
Misc. minor mechanical changes to reduce warning angst.

13 years agoProvide overloaded helpers to gbfile to make it more forgiving of QString arguments.
robertlipe [Sat, 9 Feb 2013 06:00:22 +0000 (06:00 +0000)]
Provide overloaded helpers to gbfile to make it more forgiving of QString arguments.
Minor warning cleanups.

13 years agoSketch in what a "real" XML writer might look like using QXmlStreamWriter.
robertlipe [Sat, 9 Feb 2013 05:24:52 +0000 (05:24 +0000)]
Sketch in what a "real" XML writer might look like using QXmlStreamWriter.

13 years agoGTS Trackmaker: Fix harmless cppcheck complaint.
tsteven4 [Sat, 9 Feb 2013 00:11:05 +0000 (00:11 +0000)]
GTS Trackmaker: Fix harmless cppcheck complaint.

13 years agoStart moving geocache data to a class. It's complicated.
robertlipe [Fri, 8 Feb 2013 07:06:48 +0000 (07:06 +0000)]
Start moving geocache data to a class.  It's complicated.

13 years agoUse the correct qmake for cross builds. Extra Win32 libs needed for newer
robertlipe [Thu, 7 Feb 2013 20:07:11 +0000 (20:07 +0000)]
Use the correct qmake for cross builds.  Extra Win32 libs needed for newer
Qt builds from MXE.

13 years agoEliminate redundant -I of srcdir.
robertlipe [Thu, 7 Feb 2013 01:32:07 +0000 (01:32 +0000)]
Eliminate redundant -I of srcdir.

13 years agoBetter handling of strptime being in C, but used by C++.
robertlipe [Wed, 6 Feb 2013 22:48:27 +0000 (22:48 +0000)]
Better handling of strptime being in C, but used by C++.

13 years agoMore Windows-specific C->C++ explicit casts.
robertlipe [Wed, 6 Feb 2013 20:04:54 +0000 (20:04 +0000)]
More Windows-specific C->C++ explicit casts.

13 years agoAdd some of the mechanical casts for gbser_win.cc.
robertlipe [Wed, 6 Feb 2013 19:50:27 +0000 (19:50 +0000)]
Add some of the mechanical casts for gbser_win.cc.

13 years agoMove url_link and utf_string to be more C++-ish.
robertlipe [Wed, 6 Feb 2013 06:55:28 +0000 (06:55 +0000)]
Move url_link and utf_string to be more C++-ish.

13 years agoRegenerate configure.
robertlipe [Tue, 5 Feb 2013 20:08:29 +0000 (20:08 +0000)]
Regenerate configure.

13 years agoAdd workaround for MacPorts' mutant build/install of Qt frameworks.
robertlipe [Tue, 5 Feb 2013 20:00:45 +0000 (20:00 +0000)]
Add workaround for MacPorts' mutant build/install of Qt frameworks.

13 years agoUpdate mkicondoc.
robertlipe [Fri, 1 Feb 2013 18:26:52 +0000 (18:26 +0000)]
Update mkicondoc.

13 years agoDelete dead pstrdup from util.cc
robertlipe [Fri, 1 Feb 2013 18:14:31 +0000 (18:14 +0000)]
Delete dead pstrdup from util.cc

13 years agoMinor style changes to reduce scope. cppcheck is pretty impressive.
robertlipe [Fri, 1 Feb 2013 18:01:55 +0000 (18:01 +0000)]
Minor style changes to reduce scope.  cppcheck is pretty impressive.

13 years agoSilence the 'illegal byte sequence' on Mountain Lion. We're invoking sed
robertlipe [Tue, 29 Jan 2013 20:51:17 +0000 (20:51 +0000)]
Silence the 'illegal byte sequence' on Mountain Lion.  We're invoking sed
and if LANG is en_US.UTF-8 (the default) sed complains about the invalid UTF
encodings.  Just force it to C for this DOP test and back.

13 years agoStart Sketching in replacement for the HAS/SET/-99999 hack we've used for years.
robertlipe [Mon, 28 Jan 2013 05:28:00 +0000 (05:28 +0000)]
Start Sketching in replacement for the HAS/SET/-99999 hack we've used for years.

13 years agoTweak dependency generator. Rebuild deps.
robertlipe [Mon, 28 Jan 2013 02:56:56 +0000 (02:56 +0000)]
Tweak dependency generator.  Rebuild deps.

13 years agoDon't use QDateTime to parse XML times just yet.
robertlipe [Mon, 28 Jan 2013 01:13:04 +0000 (01:13 +0000)]
Don't use QDateTime to parse XML times just yet.

13 years agofix error counting in testo.
tsteven4 [Sun, 27 Jan 2013 23:10:20 +0000 (23:10 +0000)]
fix error counting in testo.

13 years agoGuilhem Bonnefille contributes support for the Google Direction API.
robertlipe [Sun, 27 Jan 2013 22:24:28 +0000 (22:24 +0000)]
Guilhem Bonnefille  contributes support for the Google Direction API.

13 years agoAdd the datetime class, a shim between our time_t stuff and QDateTime.
robertlipe [Sun, 27 Jan 2013 22:13:26 +0000 (22:13 +0000)]
Add the datetime class, a shim between our time_t stuff and QDateTime.

13 years agoTurn on the first real use of Qt, replacing the creation_time in our waypoints
robertlipe [Sun, 27 Jan 2013 22:12:25 +0000 (22:12 +0000)]
Turn on the first real use of Qt, replacing the creation_time in our waypoints
with a QDateTime which will (eventually) give us coherent times before 1970
and with decent sub-secont support.   This patch itself doesn't really give
us that, but it lays important steps.

Right now, it's conditionally compiled under NEWTIME, but I don't expect that
to last very long.  We'll move to *requiring* Qt very quickly; this is a prop
for ease of development right now.

13 years agoMechanically simplify the argument to localtime and gmtime in several
robertlipe [Sun, 27 Jan 2013 22:07:52 +0000 (22:07 +0000)]
Mechanically simplify the argument to localtime and gmtime in several
formats to make operator overload  easier to create for those.

13 years agoRemove get_tz_offset as it has no callers.
robertlipe [Sun, 27 Jan 2013 22:03:27 +0000 (22:03 +0000)]
Remove get_tz_offset as it has no callers.

13 years agoMake gpsdevice_{ser,usb} play nicer with C++ headers.
robertlipe [Sun, 27 Jan 2013 21:53:42 +0000 (21:53 +0000)]
Make gpsdevice_{ser,usb} play nicer with C++ headers.

13 years agoRemove dead macgpsbabel tree.
robertlipe [Sun, 27 Jan 2013 21:02:38 +0000 (21:02 +0000)]
Remove dead macgpsbabel tree.

13 years agoDeja vu. Unfix const warning - again - in vecs.cc for now to fix Linux build.
robertlipe [Sun, 27 Jan 2013 20:50:55 +0000 (20:50 +0000)]
Deja vu.  Unfix const warning - again - in vecs.cc for now to fix Linux build.

13 years agoSplit destinator, unicsv, nmea, and interpolate out into tehir own tests.
robertlipe [Sun, 27 Jan 2013 05:09:54 +0000 (05:09 +0000)]
Split destinator, unicsv, nmea, and interpolate out into tehir own tests.

13 years agoMechanical changes in date handling that made it harm to shim a class
robertlipe [Sun, 27 Jan 2013 05:09:20 +0000 (05:09 +0000)]
Mechanical changes in date handling that made it harm to shim a class
"merely" overloading operators from time_t into a real class into place.

13 years agoMore changes to support a time object.
robertlipe [Sun, 27 Jan 2013 03:08:44 +0000 (03:08 +0000)]
More changes to support a time object.
I've not gone whole hog on this; it's still pretty cowardly.  The time
class is still fundamentally a time_t (sigh) and shimmed to a subclass of
QDateTime under conditional compilation.  I'll be pulling out those props
soon.

13 years agoMore groundwork for class-typed time primitives in waypoint.
robertlipe [Sun, 27 Jan 2013 03:06:05 +0000 (03:06 +0000)]
More groundwork for class-typed time primitives in waypoint.
Better types for vecs lookup functions.

13 years agoMake waypt_dupe act more like a copy constructor.
robertlipe [Sat, 26 Jan 2013 21:51:48 +0000 (21:51 +0000)]
Make waypt_dupe act more like a copy constructor.

13 years agoSplit igc, gpssim, garmin_txt into test entries of their own.
robertlipe [Sat, 26 Jan 2013 19:15:50 +0000 (19:15 +0000)]
Split igc, gpssim, garmin_txt into test entries of their own.

13 years agoBegin (very conservatively) moving some of our key data structures to
robertlipe [Tue, 22 Jan 2013 00:10:55 +0000 (00:10 +0000)]
Begin (very conservatively) moving some of our key data structures to
classes.  For now, there is overlap between ctors and our various users
of these objects (which, in many cases, promptly get our carefully initialized
objects and overwrite them...) , but let's start here.

13 years agoRename internal_styles to .cc so we can have class in *.h.
robertlipe [Sun, 20 Jan 2013 22:28:09 +0000 (22:28 +0000)]
Rename internal_styles to .cc so we can have class in *.h.

13 years agoFix mainnav test dependence on local time zone.
tsteven4 [Tue, 15 Jan 2013 14:11:48 +0000 (14:11 +0000)]
Fix mainnav test dependence on local time zone.

13 years agoTypo fix in TEF.
robertlipe [Mon, 14 Jan 2013 00:17:15 +0000 (00:17 +0000)]
Typo fix in TEF.

13 years agoImprove accuracy of height filter.
tsteven4 [Mon, 14 Jan 2013 00:08:42 +0000 (00:08 +0000)]
Improve accuracy of height filter.
Provide a script to regenerate geoid grid points for use by height.c

13 years agoFix (?) delbin on Linux.
robertlipe [Sun, 13 Jan 2013 23:56:45 +0000 (23:56 +0000)]
Fix (?) delbin on Linux.
s
x
h

13 years agoMechanical changes to build on Linux. Most were just hyper const-ipation.
robertlipe [Sun, 13 Jan 2013 23:37:20 +0000 (23:37 +0000)]
Mechanical changes to build on Linux.  Most were just hyper const-ipation.
--This line, and those below, willignored--

M    gpsbabel/jeeps/gpsusbstub.cc
M    gpsbabel/xcsv.cc
M    gpsbabel/geo.cc
M    gpsbabel/hsa_ndv.cc
M    gpsbabel/rgbcolors.cc
M    gpsbabel/magproto.cc
M    gpsbabel/gopal.cc
M    gpsbabel/pathaway.cc
M    gpsbabel/delbin.cc
M    gpsbabel/tef_xml.cc
M    gpsbabel/ozi.cc

13 years agoHyper-const util.cc
robertlipe [Sun, 13 Jan 2013 22:58:27 +0000 (22:58 +0000)]
Hyper-const util.cc

13 years agostrptime and internal_styles remain c.
robertlipe [Sun, 13 Jan 2013 22:48:13 +0000 (22:48 +0000)]
strptime and internal_styles remain c.

13 years agoStart the C->C++ migration. Rename all interesting .c files to .cc. Tweak
robertlipe [Sun, 13 Jan 2013 22:36:39 +0000 (22:36 +0000)]
Start the C->C++ migration.  Rename all interesting .c files to .cc. Tweak
build system to cope with this.  Some minor warning cleanups (mostly string
constant chatter) but mtk_locus was the only source file that got any
non-trivial edit in this process.  (How?  Because I've been chipping at
the "C as C++" block for a long time and regularly compiling as both.)

All tests that passed before still pass.

13 years agoLet V900 silently process 'G' tags as 'T' records when losing a DGPS fix.
robertlipe [Sun, 13 Jan 2013 20:38:16 +0000 (20:38 +0000)]
Let V900 silently process 'G' tags as 'T' records when losing a DGPS fix.

13 years agoRemove dead 'contrib' dir.
robertlipe [Sun, 13 Jan 2013 19:43:55 +0000 (19:43 +0000)]
Remove dead 'contrib' dir.

13 years agoRemove dead dirs.
robertlipe [Sun, 13 Jan 2013 19:41:53 +0000 (19:41 +0000)]
Remove dead dirs.

13 years agoRemove bogus project plan.
robertlipe [Sun, 13 Jan 2013 19:35:31 +0000 (19:35 +0000)]
Remove bogus project plan.

13 years agoRemove old Windows GUIs.
robertlipe [Sun, 13 Jan 2013 19:27:39 +0000 (19:27 +0000)]
Remove old Windows GUIs.

13 years agoRemove GPSBabel+. It remains in CVS on Sourceforge if you care.
robertlipe [Sun, 13 Jan 2013 19:22:45 +0000 (19:22 +0000)]
Remove GPSBabel+.  It remains in CVS on Sourceforge if you care.

13 years agoRemove st2gpx, declination, magxfer. They remain in sourceforget if you
robertlipe [Sun, 13 Jan 2013 19:21:47 +0000 (19:21 +0000)]
Remove st2gpx, declination, magxfer.  They remain in sourceforget if you
need them; they're not part of GPSBabel.

13 years agoImprove internal doc for Makefile.
robertlipe [Sun, 13 Jan 2013 19:04:36 +0000 (19:04 +0000)]
Improve internal doc for Makefile.

13 years agoActually apply aforementioned patch...
robertlipe [Thu, 10 Jan 2013 18:23:30 +0000 (18:23 +0000)]
Actually apply aforementioned patch...

13 years agoTypo fix in doc for 'Google' format.
robertlipe [Thu, 10 Jan 2013 18:19:52 +0000 (18:19 +0000)]
Typo fix in doc for 'Google' format.

13 years agofix google format for multi-segmented routes.
tsteven4 [Fri, 4 Jan 2013 01:47:38 +0000 (01:47 +0000)]
fix google format for multi-segmented routes.
add a test multi-segmented test case.

13 years agoRestore/Add support for building some make targets when builddir != srcdir.
tsteven4 [Fri, 28 Dec 2012 14:05:52 +0000 (14:05 +0000)]
Restore/Add support for building some make targets when builddir != srcdir.
Supported targets include the default, check, torture, clean and more-clean.

13 years agoFix dep target so we can regenrate dependencies, and regenerate them.
tsteven4 [Tue, 25 Dec 2012 20:06:15 +0000 (20:06 +0000)]
Fix dep target so we can regenrate dependencies, and regenerate them.

13 years agoadd support for mainnav mg-950d.
tsteven4 [Fri, 21 Dec 2012 00:33:44 +0000 (00:33 +0000)]
add support for mainnav mg-950d.

13 years agoNaviguide: Fix handling of negative ICS eastings and northings.
tsteven4 [Thu, 13 Dec 2012 01:04:03 +0000 (01:04 +0000)]
Naviguide: Fix handling of negative ICS eastings and northings.

13 years agoLowrance: fix memory corruption on read of empty route description.
robertlipe [Tue, 11 Dec 2012 18:52:02 +0000 (18:52 +0000)]
Lowrance: fix memory corruption on read of empty route description.

13 years agoQuovadis: don't crash on bad input.
robertlipe [Mon, 10 Dec 2012 20:05:39 +0000 (20:05 +0000)]
Quovadis: don't crash on bad input.

13 years agoGeoniche: Don't crash on empty input file.
robertlipe [Mon, 10 Dec 2012 20:02:31 +0000 (20:02 +0000)]
Geoniche: Don't crash on empty input file.

13 years agoEnignma improvements.
robertlipe [Mon, 10 Dec 2012 19:53:54 +0000 (19:53 +0000)]
Enignma improvements.

13 years agoFix possible crash when writing Enigma files.
robertlipe [Sun, 9 Dec 2012 23:06:53 +0000 (23:06 +0000)]
Fix possible crash when writing Enigma files.

13 years agoResync test-all with Steve.
robertlipe [Sun, 9 Dec 2012 23:05:56 +0000 (23:05 +0000)]
Resync test-all with Steve.

13 years agoSteve fixes TRACK_NEW in xcsv.
robertlipe [Sun, 9 Dec 2012 23:03:06 +0000 (23:03 +0000)]
Steve fixes TRACK_NEW in xcsv.

13 years agoWhen writing GPX and forcing unique names, handle waypoints, tracks, and
robertlipe [Sun, 9 Dec 2012 19:45:31 +0000 (19:45 +0000)]
When writing GPX and forcing unique names, handle waypoints, tracks, and
routes as different namespaces.  This is the result of the problem reported
by R Tange. Thanx, Steve.

13 years agoSteve makes torture, Test-all improvements. Let coastexp be more forgiving about...
robertlipe [Sun, 9 Dec 2012 19:25:28 +0000 (19:25 +0000)]
Steve makes torture, Test-all improvements.  Let coastexp be more forgiving about empty routes.

13 years agoMake teletype format capabilities match reality.
robertlipe [Sun, 9 Dec 2012 19:19:01 +0000 (19:19 +0000)]
Make teletype format capabilities match reality.

13 years agoSteve fixes my fix (blush) in track filter.
robertlipe [Sun, 9 Dec 2012 19:17:44 +0000 (19:17 +0000)]
Steve fixes my fix (blush) in track filter.

13 years agoTrackfilter: don't rename track if we don't have a source track name. Style
robertlipe [Sat, 8 Dec 2012 17:11:27 +0000 (17:11 +0000)]
Trackfilter: don't rename track if we don't have a source track name.  Style
improvements on generating that new segment.

13 years agoSteve and I volley improvements README.contrib. Moves astyle settings out
robertlipe [Sat, 8 Dec 2012 17:01:28 +0000 (17:01 +0000)]
Steve and I volley improvements README.contrib.  Moves astyle settings out
of doc and into astylerc.

13 years agoSheesh. Fix a bug I introduced yesterday in pocketfms_wp highlighting
robertlipe [Sat, 8 Dec 2012 16:57:37 +0000 (16:57 +0000)]
Sheesh.  Fix a bug I introduced yesterday in pocketfms_wp highlighting
the very style of code I so badly want to replace.

13 years agoMake pocketfms reader more robust on a waypoint name with a space in it
robertlipe [Sat, 8 Dec 2012 08:27:32 +0000 (08:27 +0000)]
Make pocketfms reader more robust on a waypoint name with a space in it
and make the writer not include a space.

13 years agoLowranceusr4: don't try to compute date on invalid input.
robertlipe [Sat, 8 Dec 2012 07:52:13 +0000 (07:52 +0000)]
Lowranceusr4: don't try to compute date on invalid input.

13 years agoUpdate style guidelines in README.contrib.
robertlipe [Fri, 7 Dec 2012 19:00:50 +0000 (19:00 +0000)]
Update style guidelines in README.contrib.

13 years agoRegenerate umsonstdraussen.gpx to reflect our enhanced Garmin GPI reader.
robertlipe [Thu, 6 Dec 2012 19:50:10 +0000 (19:50 +0000)]
Regenerate umsonstdraussen.gpx to reflect our enhanced Garmin GPI reader.

13 years agoSteven adds color rotate option to KML writer.
robertlipe [Wed, 5 Dec 2012 19:13:26 +0000 (19:13 +0000)]
Steven adds color rotate option to KML writer.

13 years agoExit of testo is number of failures.
robertlipe [Wed, 5 Dec 2012 18:58:34 +0000 (18:58 +0000)]
Exit of testo is number of failures.

13 years agoMinor make clean tweaks from tsteven.
robertlipe [Tue, 27 Nov 2012 01:56:44 +0000 (01:56 +0000)]
Minor make clean tweaks from tsteven.

13 years agoJeremy Mortis adds support for MTK Locus class of receivers.
robertlipe [Tue, 27 Nov 2012 01:53:48 +0000 (01:53 +0000)]
Jeremy Mortis adds support for MTK Locus class of receivers.

13 years agoMathias Adam improves handling of GPS leap seconds in Skytraq.
robertlipe [Sun, 18 Nov 2012 20:32:00 +0000 (20:32 +0000)]
Mathias Adam improves handling of GPS leap seconds in Skytraq.